package Herotestw;
import ss.Hero;//我也调用了父类的包
//我是子类2
public class KamenRider extends Hero{
    private String ridertruename;
    private String mantra;
    public KamenRider(){
        System.out.println("Maek:子类的无参构造方法");
    }
    public KamenRider(String name , int age, int fightpower, int defendpower, String superpower) {
        super(name, age, fightpower, defendpower, superpower);
        System.out.println("Maek:子类的有参构造方法");
    }
    public void setRiderInfo(String inputn, int inputa,int inputf,int inputd,String inputs, String printr, String printm){
        super.setHeroInfo(inputn, inputa);
        super.setPower(inputf, inputd, inputs);
        ridertruename = printr;
        mantra = printm;
    }
    public void getRiderInfo(){
        super.getHeroInfo();
        super.getPower();
        System.out.println("骑士名： " + ridertruename);
        System.out.println("口头禅： " + mantra);
    }
    public void target() {
        System.out.println("luv and peace, An-ti war");
    }
    public void reuseSuperTarget() {
        super.target();//还原父类的元方法
        
    }
}